home *** CD-ROM | disk | FTP | other *** search
/ The Business Master (4th Edition) / The Business Master - 4th Edition.iso / files / comphelp / whatvga / dir.txt < prev    next >
Text File  |  1993-11-20  |  3KB  |  109 lines

  1.  
  2.              DIRECTORIES
  3.  
  4.     Because a disk can contain
  5. hundreds or even thousands of files,
  6. DOS has a directory system which
  7. works like folders in a filing
  8. cabinet, to help you keep track of
  9. your programs and data.
  10.    You can keep your games in one
  11. directory, your accounting in
  12. another, pictures in another and
  13. sound files in yet another directory.
  14. You can even nest directories so that
  15. your 1992 records might be kept
  16. separate from the 1993 records,
  17. within your accounting directory.
  18.  
  19.     If you type DIR at the C prompt,
  20. you will get a list of the files
  21. only in the "root" directory.  There
  22. may be many more files on the hard
  23. disk, but they are temporarily
  24. hidden from you in their own
  25. directories.  When you type DIR to
  26. get a listing of files, it also lists
  27. directories. Example:
  28.  
  29.  Directory of D:\
  30. COMMAND  COM     52925 03-10-93   6:00a
  31. DOS          <DIR>     09-19-93   8:12a
  32. WINDOWS      <DIR>     09-19-93   8:31a
  33. KEYBDV   EXE      2886 07-07-86  12:00p
  34. CONFIG   SYS       749 09-19-93   8:22a
  35. AUTOEXEC BAT      1504 09-19-93   8:23a
  36. MODEM        <DIR>     09-19-93  11:10a
  37. IMAGES       <DIR>     09-19-93  11:12a
  38.           4 file(s)    58085 bytes
  39.                    130924544 bytes free
  40.  
  41.    To switch from one directory to
  42. any other, type CD, a space, a
  43. backslash, then the directory name.
  44. CD stands for Change Directory. The
  45. backslash identifies the name as a
  46. directory name. Examples:
  47.  
  48. CD \GRAPHICS
  49. CD \INCOME\1994
  50.  
  51.    The second example shows a nested
  52. directory, \1994 is a sub-directory
  53. of \INCOME.
  54.  
  55.     You must type out the full
  56. pathname. If \1994 is a sub-directory
  57. of \INCOME, you cannot type:
  58.  
  59. CD \1994
  60.  
  61. but must type:
  62.  
  63. CD \INCOME\1994
  64.  
  65.    To switch back to the root
  66. directory, type:
  67.  
  68. CD \
  69.  
  70. The \ by itself means root directory.
  71.  
  72.    To create a new directory, type:
  73. MD \ followed by any DOS-Legal name.
  74. MD stands for Make Directory. A
  75. directory name may contain up to 8
  76. letters or numbers.  Optionally, it
  77. can contain a "dot" (period) followed
  78. by up to three more characters.  Most
  79. punctuation marks will not work, but
  80. underline and dash are ok. Examples:
  81.  
  82. MD \CHINA
  83. MD \PAINT\PICTURES
  84.  
  85.     In order to create a nested
  86. directory, the base directory must
  87. exist first.  For example, in setting
  88. up a new accounting system, you might
  89. want a directory called:
  90. \ACCOUNT\1995. First you must MD
  91. \ACCOUNT, then you can make the
  92. sub-directory: MD \ACCOUNT\1995.
  93.  
  94.    To remove a directory, type RD
  95. followed by a space, a backslash and
  96. the directory name.  Examples:
  97.  
  98. RD \CHINA
  99. RD \PAINT\PICTURES
  100.  
  101.    You cannot remove a directory
  102. until it is empty: all files must be
  103. deleted, and if there are
  104. sub-directories they must be removed
  105. first.
  106.  
  107. _____________________________________
  108.                          end of file.
  109.